<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>WebOffice-DOCX</title>
  <link rel="icon" href="https://qnfile.ljserver.cn/static/logo_n.png">
</head>
<script src="https://qnfile.ljserver.cn/static/web-office-sdk-solution-v2.0.5.umd.js"></script>

<body>
  <script>
    window.onload = () => {
      WebOfficeSDK.init({
        officeType: WebOfficeSDK.OfficeType.Writer, // 文件类型
        appId: "SX20240322EYHNRW", // 你申请的预览服务的appid
        fileId: "docx",  // 文件id
        token: "1" // 预览token,其实这里传递的是userId,实际不要这么搞,这里只是测试
      })
    }
  </script>
</body>

</html>